<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>EXIF-Orientation example</title>
    <link rel="stylesheet" href="css/example.css">
    <script src="lib/modernizr-custom.js"></script>
</head>
<body>
    <div>浏览器<strong id="support-state">-</strong>EXIF-Orientation</div>
    <div class="card-container">
        <div class="card">
            <img src="images/orientation-6.JPG" alt="" />
        </div>
        <div class="card">
            <img src="images/orientation-1.JPG" alt="" />
        </div>
        <div class="card">
            <img src="images/orientation-8.JPG" alt="" />
        </div>
        <div class="card">
            <img src="images/orientation-3.JPG" alt="" />
        </div>
    </div>


    <div class="screenshot">
        <h5>支持EXIF-Orientation的浏览器看到的效果</h5>
        <img src="images/support-for-EXIF-Orientation.png" alt="" />
    </div>

    <div class="screenshot">
        <h5>不支持EXIF-Orientation的浏览器看到的效果</h5>
        <img src="images/no-support-for-EXIF-Orientation.png" alt="" />
    </div>


    <script>
        function getSupportState() {
          var stateDom = document.getElementById("support-state");
          stateDom.innerHTML = Modernizr.exiforientation ? '支持' : '不支持';
        }

        window.addEventListener('load', getSupportState)
    </script>
</body>
</html>
